#include "fxcc/imgui/Editor.h"
#include "fxcc/core/graph/common/Animation.h"

using namespace fxcc::graph::common;
using namespace fxcc::imgui;

template <>
bool Editor::Edit<Animation>(const std::string &label, Animation &inst)
{
    EditInst<std::string>("name", inst.m_Name);
    EditInst<float>("duration", inst.m_Duration);
    EditInst<float>("tickPerSec", inst.m_TicksPerSecond);
    EditInst<float>("totalTime", inst.m_TotalTime);

    for (auto it : inst.m_Channels)
    {
        EditInst<Channel>("channel", it.second);
    }

    return false;
}
